package com.icloud.article.boot.vo;

import com.icloud.article.boot.model.Attachment;
import com.icloud.common.database.model.Article;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.math.BigDecimal;
import java.util.List;


@ApiModel("帖子vo")
@Getter
@Setter
@ToString
@EqualsAndHashCode(callSuper = true)
public class ArticleVo extends Article {

    @ApiModelProperty("发帖人昵称")
    private String createdName;

    @ApiModelProperty("发帖人头像url")
    private String createdAvatarUrl;

    @ApiModelProperty("点赞数")
    private long upvoteCount;

    @ApiModelProperty("评论数")
    private long discussCount;

    @ApiModelProperty("转发次数")
    private long forwardCount;

    @ApiModelProperty("是否已点赞，true:是 false：未点赞")
    private Boolean isUpvote;

    @ApiModelProperty("打赏金额")
    private BigDecimal rewardAmount;

    @ApiModelProperty("附件列表")
    private List<Attachment> attachmentList;

    @ApiModelProperty("与发帖人的关注关系，FOLLOWED:已关注 EACH:已互关")
    private String attention;
    @ApiModelProperty("是否已收藏，true:是 false:未收藏")
    private Boolean isCollect;
}
